package com.kai.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Project: springcloud-demo </p>
 * <p>Description: </p>
 * <p>Copyright (c) 2024 Karrytech (Shanghai/Beijing) Co., Ltd.</p>
 * <p>All Rights Reserved.</p>
 *
 * @author <a href="mailto:zhangkai@karrytech.com">Zhang Kai</a>
 */
@Controller
public class IndexController {

    @GetMapping("/index")
    public String index() {
        return "login";
    }

    @GetMapping("/main")
    public String success() {
        return "main";
    }

    @GetMapping("/unauth")
    public String accessDenyPage(){
        return "unauth";
    }


}